package com.it.park.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.SignInService;
import com.it.park.dao.SignInMapper;
import com.it.park.model.SignIn;

@Service("signInService")
public class SignInServiceImpl extends BaseServiceImpl<SignIn> implements SignInService {
	
	@Autowired
	private  SignInMapper  signInMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return signInMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(SignIn record) {
		return signInMapper.insertSelective(record)==1;
	}
	@Override
	public SignIn selectByPrimaryKey(Integer id) {
		return signInMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(SignIn record) {
		return signInMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(SignIn record) {
		return signInMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(SignIn record) {
		return signInMapper.insert(record)==1;
	}
	@Override
	public SignIn selectByUserId(SignIn record) {
		return signInMapper.selectByUserId(record);
	}
	

}
